package com.stylefeng.guns.biz.wxchat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.biz.wxchat.dao.TWechatUserMapper;
import com.stylefeng.guns.biz.wxchat.model.TWechatUser;
import com.stylefeng.guns.biz.wxchat.service.ITWechatUserService;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author sundm123
 * @since 2018-06-14
 */
@Service
public class TWechatUserServiceImpl extends ServiceImpl<TWechatUserMapper, TWechatUser> implements ITWechatUserService {

    @Resource
    private TWechatUserMapper tWechatUserMapper;

    @Override
    public int insertOrUpdateByOpenId(TWechatUser tWechatUser) {

        return tWechatUserMapper.insertOrUpdateByOpenId(tWechatUser);


    }

    @Override
    public void updateGoldCoin(TWechatUser tWechatUser) {
        tWechatUserMapper.updateGoldCoin(tWechatUser);
    }
}
